BIN=myprocess
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)

$(BIN):$(OBJ)
	@gcc -o $@ $^
	@echo "linking $^ to $@..."

%.o:%.c
	@gcc -c $<
	@echo "linking $< to $@..."

.PHONY:clean
clean:
	rm -rf $(OBJ) $(BIN)


